<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMpWxConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mp_wx_config', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('app_id')->default('')->comment('appid');
            $table->string('secret')->default('')->comment('密钥');
            $table->string('token')->default('')->comment('token');
            $table->string('environment')->default('')->comment('环境');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mp_wx_config');
    }
}
